/*
 * @Author: xuhong
 * @Date: 2020-05-13 17:35:20
 * @LastEditTime: 2020-05-13 22:19:14
 * @FilePath: \my-admin\src\assets\vue-markdown-master\src\components\pro\IndexDetails.js
 */
function CurentTime()
{ 
    var now = new Date();
    
    var year = now.getFullYear();       //年
    var month = now.getMonth() + 1;     //月
    var day = now.getDate();            //日
    
    var hh = now.getHours();            //时
    var mm = now.getMinutes();          //分
    
    var clock = year + "-";
    
    if(month < 10)
        clock += "0";
    
    clock += month + "-";
    
    if(day < 10)
        clock += "0";
        
    clock += day + " ";
    
    if(hh < 10)
        clock += "0";
        
    clock += hh + ":";
    if (mm < 10) clock += '0'; 
    clock += mm; 
    return(clock); 
} 
 export const detailsIndex = {
     title:'周思柱检查研究生复试工作',
     author:'张某某',
     date:CurentTime()
 }
 export const md = `  
 title: ${detailsIndex.title}
 author: ${detailsIndex.author}
 datee: ${detailsIndex.date}
 tags: - 
 `
Object.keys(detailsIndex).forEach(curr => {
    Object.defineProperty(detailsIndex, curr, {

        set: (newVal)=>{
    　　　　console.log(newVal)
    　　}
      });
})
//  for(let i = 0; i < detailsIndex.keys(); i++){

//  }

 

 let arr = ["  ↵ title: 周思柱检查研究生复试工作↵ author: 张某某↵ datee: 2020-05-13 21:30↵ tags: -  ↵ "]